package com.huat.service.Impl;

import com.huat.mapper.UserInfoMapper;
import com.huat.mapper.UserMsgMapper;
import com.huat.pojo.UserInfo;
import com.huat.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;
    @Override
    public boolean submit(UserInfo userInfo) {
        System.out.println(userInfo.toString());
        userInfoMapper.addUserInfo(userInfo);
        return true;
    }
}
